<!--
  业务 头部导航
 -->
<template>
  <div class="header-container">
    <div class="header__top">
      <HeaderUser />
      <HeaderMenu />
    </div>
    <div class="header__bottom">
      <DateDisplay />
    </div>
  </div>
</template>

<script>
import DateDisplay from './DateDisplay.vue'
import HeaderUser from './User.vue'
import HeaderMenu from './Menu.vue'

export default {
  name: 'header-view',
  data() {
    return {
      dlgParam: {
        show: false
      },
      curs: sa.$sys.getCurSer()
    }
  },
  components: {
    DateDisplay,
    HeaderUser,
    HeaderMenu,
  }
}
</script>

<style lang="scss" scoped>
@import '@/styles/mixin.scss';

.header-container {
  @include flex-start;
  flex-direction: column;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  background: #fff;
  transition: all 0.3s ease;
  gap: 42px;
  padding: 20px 5px 10px 5px;
  border-radius: 12px;

  @media (max-width: 768px) {
    padding: 12px 16px;
    gap: 12px;
  }
}

.header__top {
  @include flex-start;
  flex-direction: column;
  gap: 16px;
  max-height: 80%;
  text-align: center;
  width: 100%;
}

.header__bottom {
  height: 20%;
}
</style>
